#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setCentralWidget(new dou);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_action_2_triggered()     //关于按键点击事件
{
    about *temp =new about(this);
    temp->exec();
    delete temp;
}

void MainWindow::on_action_triggered()         //主页按键点击事件
{
    QUrl url(QString(homepage));
    QDesktopServices::openUrl(url);
}
